package com.ruibang.glass.material.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.util.List;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 容器位置转移记录
 * </p>
 *
 * @author songJinKang
 * @since 2024-03-25
 */
@Data
@ApiModel(value = "容器位置转移记录")
@TableName("g_material_container_transfer_record")
public class ContainerTransferRecord extends BaseEntity {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
    @ApiModelProperty(value = "容器编码")
    private String containerCode;
    @ApiModelProperty(value = "容器类型:1：A型架，2：水平托盘，3：料罐")
    private String containerType;
    @ApiModelProperty(value = "仓库ID")
    private String warehouseId;
    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;
    @ApiModelProperty(value = "库位ID")
    private String warehousePositionId;
    @ApiModelProperty(value = "库位名称")
    private String warehousePositionName;
    @ApiModelProperty(value = "状态ID")
    private String statusId;
    @ApiModelProperty(value = "状态名称")
    private String statusName;
    @ApiModelProperty(value = "转移用户ID")
    private String transferUserId;
    @ApiModelProperty(value = "转移用户的名称")
    private String transferUserName;
    @ApiModelProperty(value = "转移时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime transferTime;
    @ApiModelProperty(value = "是否删除：1：是 0：否")
    @TableLogic
    private String isDelete;
}
